﻿using System;
using System.Net;
using System.Runtime.Serialization;

namespace SBPweb.PROvibe.Shared.Actors
{

    [DataContract]
    public struct ClientDescriptor
    {

        public static ClientDescriptor Unknown = new ClientDescriptor("0.0.0.0", string.Empty);

        public ClientDescriptor(string clientIp, string sessionId)
        {
            SessionId = sessionId;
            ClientIp = clientIp;
        }

        [DataMember]
        public string SessionId;

        [DataMember]
        public string ClientIp;

        public override string ToString()
        {
            return string.Format("[{0}]: {1}", ClientIp, SessionId);
        }
    }

}